<?php
/**
 * Desc:
 * User: aniu
 * Date: 2021/1/2
 * Time: 下午3:03
 * @return
 */

namespace App\Listener;


use Swoft\Event\Annotation\Mapping\Listener;
use Swoft\Event\EventHandlerInterface;
use Swoft\Event\EventInterface;

/**
 * @Listener("aniu")
 */
class TestListener implements EventHandlerInterface
{

    /**
     * @inheritDoc
     */
    public function handle(EventInterface $event): void
    {
        var_dump($event->getParams());
        var_dump($event->getTarget());
    }
}
